package com.mes.service.tdd;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.mes.dao.tdd.ArpsMapper;
import com.mes.entity.jy.Tempproduct;
import com.mes.entity.lc.ProductGoku;
import com.mes.entity.lc.ProductReturn;
import com.mes.entity.lc.ProductStock;
import com.mes.entity.tdd.ProductRmoveDetail;
import com.mes.entity.yzlExtend.ExtendOutlib;
import com.mes.entity.yzlExtend.ExtendReturnOdrer;
/**
 * 
* @ClassName: ArpsServiceImpl 
* @Description: ARP产品出库，退货，移库
* @Author tdd
* @Date 2017年11月27日 下午5:29:17 
* @version 1.0
 */
@Service
@Transactional
public class ArpsServiceImpl implements ArpsService{
	//注入ARP产品出库，退货，移库Mapper
	@Resource ArpsMapper arpsMapper;
	/**
	 * 查询销售出库单
	 */
	@Override
	public List<ExtendOutlib> allOutlibList(ExtendOutlib extendOutlib) {
		// TODO Auto-generated method stub
		return arpsMapper.allOutlibList(extendOutlib);
	}
	/**
	 * 查询销售退货单
	 */
	@Override
	public List<ExtendReturnOdrer> allReturnOrder(
			ExtendReturnOdrer extendReturnOdrer) {
		// TODO Auto-generated method stub
		return arpsMapper.allReturnOrder(extendReturnOdrer);
	}
	/**
	 * 添加出库记录
	 */
	@Override
	public Long addProductGoku(ProductGoku goku) {
		// TODO Auto-generated method stub
		return arpsMapper.addProductGoku(goku);
		
	}
	/**
	 * 添加退货记录
	 */
	@Override
	public Long addProductReturn(ProductReturn productReturn) {
		// TODO Auto-generated method stub
		return arpsMapper.addProductReturn(productReturn);
	}
	/**
	 * 查库存
	 */
	@Override
	public List<ProductStock> productStockAll(ProductStock productStock) {
		// TODO Auto-generated method stub
		return arpsMapper.productStockAll(productStock);
	}
	/**
	 * 移库记录添加
	 */
	@Override
	public Long addProductRmove(ProductRmoveDetail rmoveDetail) {
		// TODO Auto-generated method stub
		return arpsMapper.addProductRmove(rmoveDetail);
	}
	/**
	 * 查询产品线边库
	 */
	@Override
	public List<Tempproduct> allTempproduct(Tempproduct tempproduct) {
		// TODO Auto-generated method stub
		return arpsMapper.allTempproduct(tempproduct);
	}
	/**
	 * 根据条形码查询产品出库记录
	 */
	@Override
	public List<ProductGoku> findByLpcode(ProductGoku productGoku) {
		// TODO Auto-generated method stub
		return arpsMapper.findByLpcode(productGoku);
	}

	
}
